# -*- coding: utf-8 -*-
import shelve,pyperclip,sys,time
import pandas as pd


# df = pd.read_excel('train.xlsx')
# for i ,j ,k in zip(df['Name'],df['Sex'],df['Age']):
# 	mcbShelf[i] =[j,k]
mcbShelf = shelve.open('mcb')


query_content = pyperclip.paste()
print(query_content)
if   query_content in mcbShelf.keys():
	a = mcbShelf[query_content]
	# pyperclip.copy(mcbShelf[query_content])
	print(a)
	b =''
	for i in a:
		b =b  +"  "+ str(i)
	pyperclip.copy(b)
	print(b)
else:
	print("没有找到该用户名！")

mcbShelf.close()
